home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Workbench Design
/
WB Collection.iso
/
workbench werkzeuge
/
bildschirmschoner
/
bserver_v1.5
/
sources.lha
/
Sources
/
server
/
builtin_blanker.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-11-08
|
784b
|
48 lines
#include <intuition/intuition.h>
#include <hardware/custom.h>
#include <hardware/dmabits.h>
#include <graphics/gfxmacros.h>
#include <clib/macros.h>
#include <proto/intuition.h>
#include <proto/graphics.h>
/***************
* *
* SCREEN STUFF *
* *
***************/
#define custom (*((struct Custom *)0xDFF000L))
static struct Screen *blackScr;
extern ULONG DisplayID;
BOOL PopUpBlackScreen( void )
{
if ( blackScr )
return( TRUE );
if ( blackScr = OpenScreenTags( NULL,
SA_DisplayID, DisplayID,
SA_Depth, 0,
TAG_END ) )
{
OFF_SPRITE
SetRGB4( &(blackScr->ViewPort), 0, 0, 0, 0 );
return( TRUE );
}
return( FALSE );
}
void CloseBlackScreen( void )
{
if ( blackScr )
{
ON_SPRITE
CloseScreen( blackScr );
blackScr = NULL;
}
}